package Mangos::DB::Mangos::PetLevelstats;

use strict;

use base qw(Mangos::DB::Mangos);

__PACKAGE__->meta->setup
(
    table   => 'pet_levelstats',

    columns => 
    [
        creature_entry => { type => 'integer', not_null => 1 },
        level          => { type => 'integer', not_null => 1 },
        hp             => { type => 'integer', not_null => 1 },
        mana           => { type => 'integer', not_null => 1 },
        armor          => { type => 'integer', default => '0', not_null => 1 },
        str            => { type => 'integer', not_null => 1 },
        agi            => { type => 'integer', not_null => 1 },
        sta            => { type => 'integer', not_null => 1 },
        inte           => { type => 'integer', not_null => 1 },
        spi            => { type => 'integer', not_null => 1 },
    ],

    primary_key_columns => [ 'creature_entry', 'level' ],
);

1;

package Mangos::DB::Mangos::PetLevelstats::Manager;

use strict;
use warnings;

use base 'Rose::DB::Object::Manager';

sub object_class { 'Mangos::DB::Mangos::PetLevelstats' }

__PACKAGE__->make_manager_methods('pet_levelstats');

1;
